GetParaPr
Returns the paragraph properties which are applied to any numbered paragraph that references the given numbering definition and numbering level.
Syntax
expression.GetParaPr();
expression
- A variable that represents a ApiNumberingLevel class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example shows how to get the paragraph properties which are applied to any numbered paragraph that references the given numbering definition and numbering level.
let doc = Api.GetDocument();
let numbering = doc.CreateNumbering("numbered");
let numLvl = numbering.GetLevel(0);
let paraPr = numLvl.GetParaPr();
paraPr.SetSpacingLine(480, "auto");
paraPr.SetJc("both");
paraPr.SetIndFirstLine(720);
let paragraph = doc.GetElement(0);
paragraph.SetNumbering(numLvl);
paragraph.AddText("This is the first element of a parent numbered list which starts with '1'");
paragraph = Api.CreateParagraph();
paragraph.AddText("This is the second element of a parent numbered list which starts with '2'");
paragraph.SetNumbering(numLvl);
doc.Push(paragraph);